local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1
L0_1 = {}
L0_1.group_id = 133222318
L1_1 = {}
L1_1.duration = 40
L1_1.group_id = 133222318
L1_1.gadget_sum = 13
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 318001
L3_1.gadget_id = 70220005
L4_1 = {}
L4_1.x = -4733.008
L4_1.y = 442.176
L4_1.z = -4123.134
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 2
L3_1.persistent = true
L3_1.area_id = 14
L4_1 = {}
L4_1.config_id = 318002
L4_1.gadget_id = 70350084
L5_1 = {}
L5_1.x = -4712.122
L5_1.y = 444.434
L5_1.z = -4127.222
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 0.0
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 2
L4_1.persistent = true
L4_1.area_id = 14
L5_1 = {}
L5_1.config_id = 318003
L5_1.gadget_id = 70211111
L6_1 = {}
L6_1.x = -4712.816
L6_1.y = 444.512
L6_1.z = -4129.396
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 356.306
L6_1.y = 67.848
L6_1.z = 4.254
L5_1.rot = L6_1
L5_1.level = 26
L5_1.drop_tag = "\232\167\163\232\176\156\228\184\173\231\186\167\231\168\187\229\166\187"
L5_1.isOneoff = true
L5_1.persistent = true
L5_1.autopick = true
L6_1 = {}
L6_1.name = "chest"
L6_1.exp = 1
L5_1.explore = L6_1
L5_1.area_id = 14
L6_1 = {}
L6_1.config_id = 318004
L6_1.gadget_id = 70220005
L7_1 = {}
L7_1.x = -4735.087
L7_1.y = 442.17
L7_1.z = -4118.029
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 2
L6_1.persistent = true
L6_1.area_id = 14
L7_1 = {}
L7_1.config_id = 318005
L7_1.gadget_id = 70360001
L8_1 = {}
L8_1.x = -4712.113
L8_1.y = 444.434
L8_1.z = -4127.21
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 0.0
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 2
L7_1.persistent = true
L7_1.area_id = 14
L8_1 = {}
L8_1.config_id = 318013
L8_1.gadget_id = 70330100
L9_1 = {}
L9_1.x = -4739.426
L9_1.y = 441.85
L9_1.z = -4123.446
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 0.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 30
L8_1.area_id = 14
L9_1 = {}
L9_1.config_id = 318014
L9_1.gadget_id = 70330100
L10_1 = {}
L10_1.x = -4734.857
L10_1.y = 441.85
L10_1.z = -4118.481
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 314.739
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 30
L9_1.area_id = 14
L10_1 = {}
L10_1.config_id = 318015
L10_1.gadget_id = 70330100
L11_1 = {}
L11_1.x = -4732.891
L11_1.y = 441.85
L11_1.z = -4123.52
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 314.739
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 30
L10_1.area_id = 14
L11_1 = {}
L11_1.config_id = 318016
L11_1.gadget_id = 70330100
L12_1 = {}
L12_1.x = -4729.261
L12_1.y = 436.185
L12_1.z = -4106.443
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 0.0
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 30
L11_1.area_id = 14
L12_1 = {}
L12_1.config_id = 318017
L12_1.gadget_id = 70330100
L13_1 = {}
L13_1.x = -4724.692
L13_1.y = 436.185
L13_1.z = -4101.479
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 314.739
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 30
L12_1.area_id = 14
L13_1 = {}
L13_1.config_id = 318018
L13_1.gadget_id = 70330100
L14_1 = {}
L14_1.x = -4722.726
L14_1.y = 436.185
L14_1.z = -4106.517
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 314.739
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 30
L13_1.area_id = 14
L14_1 = {}
L14_1.config_id = 318019
L14_1.gadget_id = 70330100
L15_1 = {}
L15_1.x = -4710.007
L15_1.y = 433.134
L15_1.z = -4098.516
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 0.0
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 30
L14_1.area_id = 14
L15_1 = {}
L15_1.config_id = 318020
L15_1.gadget_id = 70330100
L16_1 = {}
L16_1.x = -4705.438
L16_1.y = 433.134
L16_1.z = -4093.55
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 314.739
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 30
L15_1.area_id = 14
L16_1 = {}
L16_1.config_id = 318021
L16_1.gadget_id = 70330100
L17_1 = {}
L17_1.x = -4703.472
L17_1.y = 433.134
L17_1.z = -4098.589
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 314.739
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 30
L16_1.area_id = 14
L17_1 = {}
L17_1.config_id = 318022
L17_1.gadget_id = 70220005
L18_1 = {}
L18_1.x = -4739.407
L18_1.y = 442.171
L18_1.z = -4122.926
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 0.0
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 30
L17_1.area_id = 14
L18_1 = {}
L18_1.config_id = 318026
L18_1.gadget_id = 70220005
L19_1 = {}
L19_1.x = -4728.433
L19_1.y = 436.503
L19_1.z = -4107.881
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 106.129
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 30
L18_1.area_id = 14
L19_1 = {}
L19_1.config_id = 318028
L19_1.gadget_id = 70220005
L20_1 = {}
L20_1.x = -4723.2
L20_1.y = 436.521
L20_1.z = -4102.477
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 0.0
L20_1.y = 106.129
L20_1.z = 0.0
L19_1.rot = L20_1
L19_1.level = 30
L19_1.area_id = 14
L20_1 = {}
L20_1.config_id = 318029
L20_1.gadget_id = 70220005
L21_1 = {}
L21_1.x = -4723.126
L21_1.y = 436.511
L21_1.z = -4106.255
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 0.0
L21_1.y = 106.129
L21_1.z = 0.0
L20_1.rot = L21_1
L20_1.level = 30
L20_1.area_id = 14
L21_1 = {}
L21_1.config_id = 318030
L21_1.gadget_id = 70220005
L22_1 = {}
L22_1.x = -4726.886
L22_1.y = 436.412
L22_1.z = -4106.206
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 0.0
L22_1.y = 106.129
L22_1.z = 0.0
L21_1.rot = L22_1
L21_1.level = 30
L21_1.area_id = 14
L22_1 = {}
L22_1.config_id = 318031
L22_1.gadget_id = 70220005
L23_1 = {}
L23_1.x = -4725.776
L23_1.y = 436.46
L23_1.z = -4103.421
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 0.0
L23_1.y = 106.129
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 30
L22_1.area_id = 14
L23_1 = {}
L23_1.config_id = 318032
L23_1.gadget_id = 70220005
L24_1 = {}
L24_1.x = -4710.328
L24_1.y = 433.488
L24_1.z = -4098.467
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 0.0
L24_1.y = 70.193
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 30
L23_1.area_id = 14
L24_1 = {}
L24_1.config_id = 318034
L24_1.gadget_id = 70220005
L25_1 = {}
L25_1.x = -4708.592
L25_1.y = 433.386
L25_1.z = -4097.233
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 0.0
L25_1.y = 70.193
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 30
L24_1.area_id = 14
L25_1 = {}
L25_1.config_id = 318035
L25_1.gadget_id = 70220005
L26_1 = {}
L26_1.x = -4705.494
L26_1.y = 433.315
L26_1.z = -4097.098
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 0.0
L26_1.y = 70.193
L26_1.z = 0.0
L25_1.rot = L26_1
L25_1.level = 30
L25_1.area_id = 14
L26_1 = {}
L26_1.config_id = 318037
L26_1.gadget_id = 70220005
L27_1 = {}
L27_1.x = -4703.646
L27_1.y = 433.495
L27_1.z = -4098.856
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 0.0
L27_1.y = 70.193
L27_1.z = 0.0
L26_1.rot = L27_1
L26_1.level = 30
L26_1.area_id = 14
L27_1 = {}
L27_1.config_id = 318039
L27_1.gadget_id = 70220005
L28_1 = {}
L28_1.x = -4705.876
L28_1.y = 433.473
L28_1.z = -4093.592
L27_1.pos = L28_1
L28_1 = {}
L28_1.x = 0.0
L28_1.y = 70.193
L28_1.z = 0.0
L27_1.rot = L28_1
L27_1.level = 30
L27_1.area_id = 14
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
L2_1[8] = L10_1
L2_1[9] = L11_1
L2_1[10] = L12_1
L2_1[11] = L13_1
L2_1[12] = L14_1
L2_1[13] = L15_1
L2_1[14] = L16_1
L2_1[15] = L17_1
L2_1[16] = L18_1
L2_1[17] = L19_1
L2_1[18] = L20_1
L2_1[19] = L21_1
L2_1[20] = L22_1
L2_1[21] = L23_1
L2_1[22] = L24_1
L2_1[23] = L25_1
L2_1[24] = L26_1
L2_1[25] = L27_1
gadgets = L2_1
L2_1 = {}
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1318006
L3_1.name = "CHALLENGE_SUCCESS_318006"
L4_1 = EventType
L4_1 = L4_1.EVENT_CHALLENGE_SUCCESS
L3_1.event = L4_1
L3_1.source = "56"
L3_1.condition = ""
L3_1.action = "action_EVENT_CHALLENGE_SUCCESS_318006"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1318007
L4_1.name = "CHALLENGE_FAIL_318007"
L5_1 = EventType
L5_1 = L5_1.EVENT_CHALLENGE_FAIL
L4_1.event = L5_1
L4_1.source = "56"
L4_1.condition = ""
L4_1.action = "action_EVENT_CHALLENGE_FAIL_318007"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1318008
L5_1.name = "GADGET_STATE_CHANGE_318008"
L6_1 = EventType
L6_1 = L6_1.EVENT_GADGET_STATE_CHANGE
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_318008"
L5_1.action = "action_EVENT_GADGET_STATE_CHANGE_318008"
L5_1.trigger_count = 0
L6_1 = {}
L6_1.config_id = 1318009
L6_1.name = "ANY_GADGET_DIE_318009"
L7_1 = EventType
L7_1 = L7_1.EVENT_ANY_GADGET_DIE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = ""
L6_1.action = ""
L6_1.trigger_count = 0
L6_1.tag = "201"
L7_1 = {}
L7_1.config_id = 1318010
L7_1.name = "GADGET_CREATE_318010"
L8_1 = EventType
L8_1 = L8_1.EVENT_GADGET_CREATE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_GADGET_CREATE_318010"
L7_1.action = "action_EVENT_GADGET_CREATE_318010"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1318011
L8_1.name = "SELECT_OPTION_318011"
L9_1 = EventType
L9_1 = L9_1.EVENT_SELECT_OPTION
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_SELECT_OPTION_318011"
L8_1.action = "action_EVENT_SELECT_OPTION_318011"
L8_1.trigger_count = 0
L9_1 = {}
L9_1.config_id = 1318012
L9_1.name = "GROUP_LOAD_318012"
L10_1 = EventType
L10_1 = L10_1.EVENT_GROUP_LOAD
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = ""
L9_1.action = "action_EVENT_GROUP_LOAD_318012"
L9_1.trigger_count = 0
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
L2_1[5] = L7_1
L2_1[6] = L8_1
L2_1[7] = L9_1
triggers = L2_1
L2_1 = {}
L3_1 = {}
L3_1.configId = 1
L3_1.name = "gadget_start"
L3_1.value = 0
L3_1.no_refresh = true
L2_1[1] = L3_1
variables = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L4_1.config_id = 318023
L4_1.gadget_id = 70220005
L5_1 = {}
L5_1.x = -4734.588
L5_1.y = 442.06
L5_1.z = -4117.433
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 0.0
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 30
L4_1.area_id = 14
L5_1 = {}
L5_1.config_id = 318024
L5_1.gadget_id = 70220005
L6_1 = {}
L6_1.x = -4731.806
L6_1.y = 442.071
L6_1.z = -4124.081
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 0.0
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 30
L5_1.area_id = 14
L6_1 = {}
L6_1.config_id = 318025
L6_1.gadget_id = 70220005
L7_1 = {}
L7_1.x = -4740.711
L7_1.y = 442.053
L7_1.z = -4123.254
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 0.0
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 30
L6_1.area_id = 14
L7_1 = {}
L7_1.config_id = 318027
L7_1.gadget_id = 70220005
L8_1 = {}
L8_1.x = -4721.631
L8_1.y = 436.459
L8_1.z = -4107.629
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 106.129
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 30
L7_1.area_id = 14
L8_1 = {}
L8_1.config_id = 318033
L8_1.gadget_id = 70220005
L9_1 = {}
L9_1.x = -4710.076
L9_1.y = 433.368
L9_1.z = -4098.763
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 70.193
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 30
L8_1.area_id = 14
L9_1 = {}
L9_1.config_id = 318036
L9_1.gadget_id = 70220005
L10_1 = {}
L10_1.x = -4703.691
L10_1.y = 433.36
L10_1.z = -4098.84
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 70.193
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 30
L9_1.area_id = 14
L10_1 = {}
L10_1.config_id = 318038
L10_1.gadget_id = 70220005
L11_1 = {}
L11_1.x = -4707.381
L11_1.y = 433.248
L11_1.z = -4093.559
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 70.193
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 30
L10_1.area_id = 14
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L2_1.gadgets = L3_1
garbages = L2_1
L2_1 = {}
L2_1.suite = 4
L2_1.end_suite = 3
L2_1.rand_suite = false
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 318002
L6_1 = 318005
L4_1[1] = L5_1
L4_1[2] = L6_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "CHALLENGE_SUCCESS_318006"
L6_1 = "CHALLENGE_FAIL_318007"
L7_1 = "GADGET_STATE_CHANGE_318008"
L8_1 = "ANY_GADGET_DIE_318009"
L9_1 = "GADGET_CREATE_318010"
L10_1 = "SELECT_OPTION_318011"
L11_1 = "GROUP_LOAD_318012"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 318001
L7_1 = 318004
L8_1 = 318013
L9_1 = 318014
L10_1 = 318015
L11_1 = 318016
L12_1 = 318017
L13_1 = 318018
L14_1 = 318019
L15_1 = 318020
L16_1 = 318021
L17_1 = 318022
L18_1 = 318026
L19_1 = 318028
L20_1 = 318029
L21_1 = 318030
L22_1 = 318031
L23_1 = 318032
L24_1 = 318034
L25_1 = 318035
L26_1 = 318037
L27_1 = 318039
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
L5_1[6] = L11_1
L5_1[7] = L12_1
L5_1[8] = L13_1
L5_1[9] = L14_1
L5_1[10] = L15_1
L5_1[11] = L16_1
L5_1[12] = L17_1
L5_1[13] = L18_1
L5_1[14] = L19_1
L5_1[15] = L20_1
L5_1[16] = L21_1
L5_1[17] = L22_1
L5_1[18] = L23_1
L5_1[19] = L24_1
L5_1[20] = L25_1
L5_1[21] = L26_1
L5_1[22] = L27_1
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L5_1 = {}
L6_1 = {}
L5_1.monsters = L6_1
L6_1 = {}
L7_1 = 318002
L8_1 = 318003
L6_1[1] = L7_1
L6_1[2] = L8_1
L5_1.gadgets = L6_1
L6_1 = {}
L5_1.regions = L6_1
L6_1 = {}
L5_1.triggers = L6_1
L5_1.rand_weight = 100
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L6_1.gadgets = L7_1
L7_1 = {}
L6_1.regions = L7_1
L7_1 = {}
L6_1.triggers = L7_1
L6_1.rand_weight = 100
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
L2_1[4] = L6_1
suites = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 318002
  L5_2 = GadgetState
  L5_2 = L5_2.GearStop
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 318005
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : kill_entity_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GoToGroupSuite
  L3_2 = A0_2
  L4_2 = 133222318
  L5_2 = 3
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : goto_groupSuite"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.MarkPlayerAction
  L3_2 = A0_2
  L4_2 = 3003
  L5_2 = 3
  L6_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : mark_playerAction"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_SUCCESS_318006 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 318002
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.RemoveExtraGroupSuite
  L3_2 = A0_2
  L4_2 = 133222318
  L5_2 = 2
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.CreateGadget
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 318005
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : create_gadget"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.MarkPlayerAction
  L3_2 = A0_2
  L4_2 = 3003
  L5_2 = 4
  L6_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : mark_playerAction"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupVariableValue
  L3_2 = A0_2
  L4_2 = "gadget_start"
  L5_2 = 0
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_groupVariable"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_FAIL_318007 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  if 318002 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.GearStart
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      goto lbl_11
    end
  end
  L2_2 = false
  do return L2_2 end
  ::lbl_11::
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_318008 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
  L2_2 = ScriptLib
  L2_2 = L2_2.ActiveChallenge
  L3_2 = A0_2
  L4_2 = 56
  L5_2 = 201
  L6_2 = L1_1.duration
  L7_2 = 2
  L8_2 = 201
  L9_2 = L1_1.gadget_sum
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.AddExtraGroupSuite
  L3_2 = A0_2
  L4_2 = L1_1.group_id
  L5_2 = 2
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.MarkPlayerAction
  L3_2 = A0_2
  L4_2 = 3003
  L5_2 = 1
  L6_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_318008 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2
  L2_2 = A1_2.param1
  if 318005 ~= L2_2 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_CREATE_318010 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetWorktopOptionsByGroupId
  L3_2 = A0_2
  L4_2 = 133222318
  L5_2 = 318005
  L6_2 = {}
  L7_2 = 177
  L6_2[1] = L7_2
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_wok_options_by_configid"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_CREATE_318010 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2
  L2_2 = A1_2.param1
  if 318005 ~= L2_2 then
    L2_2 = false
    return L2_2
  end
  L2_2 = A1_2.param2
  if 177 ~= L2_2 then
    L2_2 = false
    return L2_2
  end
  L2_2 = true
  return L2_2
end
condition_EVENT_SELECT_OPTION_318011 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 318005
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : kill_entity_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 318002
  L5_2 = GadgetState
  L5_2 = L5_2.GearStart
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_SELECT_OPTION_318011 = L2_1
function L2_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 318002
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.RemoveExtraGroupSuite
  L3_2 = A0_2
  L4_2 = 133222318
  L5_2 = 2
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.CreateGadget
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 318005
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : create_gadget"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.MarkPlayerAction
  L3_2 = A0_2
  L4_2 = 3003
  L5_2 = 4
  L6_2 = 1
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : mark_playerAction"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupVariableValue
  L3_2 = A0_2
  L4_2 = "gadget_start"
  L5_2 = 0
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_groupVariable"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GROUP_LOAD_318012 = L2_1
